unimplemented();
}
-void smp_send_event_check_mask(cpumask_t cpu_mask)
+void smp_send_event_check_mask(cpumask_t mask)
{
- unimplemented();
+ cpu_clear(smp_processor_id(), mask);
+ if (!cpus_empty(mask))
+ unimplemented();
}
-int smp_call_function(void (*func) (void *info), void *info, int unused,
+
+int smp_call_function(void (*func) (void *info), void *info, int retry,
int wait)
{
- unimplemented();
- return 0;
+ cpumask_t allbutself = cpu_online_map;
+ cpu_clear(smp_processor_id(), allbutself);
+
+ return on_selected_cpus(allbutself, func, info, retry, wait);
}
void smp_send_stop(void)
int retry,
int wait)
{
+ unimplemented();
return 0;
}
__builtin_trap();
}
+static inline void unimplemented(void)
+{
+#ifdef VERBOSE
+ dump_execution_state();
+#endif
+}
+
static inline void show_execution_state(struct cpu_user_regs *regs)
{
show_registers(regs);
extern void __warn(char *file, int line);
#define WARN() __warn(__FILE__, __LINE__)
#define WARN_ON(_p) do { if (_p) WARN(); } while ( 0 )
-#define unimplemented() WARN()
#define FORCE_CRASH() debugger_trap_immediate()